import { DynamicModule, Global } from "@nestjs/common";
import { WsGateway } from "./ws.gateway";

@Global()
export class WsModule {
  static forRoot(): DynamicModule {
    return {
      global: true,
      providers: [WsGateway],
      module: WsModule,
      exports: [WsGateway],
    };
  }
}
